#define _LED_MODULE_

#include "osObjects.h"
#include "pincfg.h"
#include "ledctr.h"
#include "rtctime.h"

/*****************************************************************************//*!
*
* @brief   led task.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/

void LedCtrTask(void *argument) {
    uint32_t TaskCnt = 0;

    for (;;) {

        vTaskDelay(250);
        
        Led1() = !Led1();

        if (0 == (TaskCnt & 0x01))
            Led2() = !Led2();

        if (0 == (TaskCnt & 0x03)) {
            Led3() = !Led3();
        }

        TaskCnt++;
    }
}